import bpy
import ctypes

import engine.initLIB.load_dll as engineLib



g_是否绘制预览窗口 = False


def f_3D视口绘制():
	global g_是否绘制预览窗口
	if g_是否绘制预览窗口 :
		engineLib.flexCAPI.f_EngineDraw()
	
	#print('视口绘制')


classes = (
	
)


def register():
	for c in classes:
		bpy.utils.register_class(c)
	
	handle_view = bpy.types.SpaceView3D.draw_handler_add(f_3D视口绘制, (), 'WINDOW', 'POST_VIEW')
	

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)






